package main.java.com.manger.service;

import com.manger.dto.Page;
import com.manger.entity.Student;

import java.util.List;

/**
 * Created by LCJ on 2017/6/13.
 */
public interface StudentService {
    /**
     * 添加一条学生信息
     * @param student
     * @return
     */
    public String addStudent(Student student);

    /**
     * 通过id删除一条学生信息
     * @param id
     * @return
     */
    public String deleteStudentById(Integer id);

    /**
     * 更新一条学生信息
     * @param student
     * @return
     */
    public String updateStudent(Student student);

    /**
     * 查看所有学生信息
     * @return
     */
    public List<Student> findAllStudents(Page pag);


    public List<Student> findAllStudents();

    /**
     * 通过id查看一个学生信息
     * @param id
     * @return
     */
    public Student findStudent(Integer id);

    /**
     * 通过no查看学生信息
     * @param no
     * @return
     */
    public Student findStudentByNo(Long no);

    public List<Student> findStudentByKey(Long no);

    public Integer findCount();
}
